<?php $this->load->view('base/header'); ?>

<link rel="stylesheet" media="screen" href="<?php echo base_url() . 'css/jquery.datatable.gui.css' ?>"/>
<link rel="stylesheet" media="screen" href="<?php echo base_url() . 'css/jquery-ui-1.8.14.custom.css' ?>"/>
<link rel="stylesheet" media="screen" href="<?php echo base_url() . 'css/table.css' ?>"/>

<script type="text/javascript" src="<?php echo base_url() . 'js/jquery-ui-1.8.14.custom.min.js' ?>"></script>
<script type="text/javascript" src="<?php echo base_url() . 'js/jquery.dataTables.js' ?>"></script>
<script type="text/javascript" src="<?php echo base_url() . 'js/jquery.formatCurrency-1.4.0.js' ?>"></script>

<script type="text/javascript" src="<?php echo base_url() . 'js/br-04/transaksi_viakasir.js' ?>"></script>
<script type="text/javascript" src="<?php echo base_url() . 'js/br-04/perkiraan.js' ?>"></script>
<section>
    <div class="container_8 clearfix">

        <!-- Main Section -->

        <section class="main-section grid_8">
            <!-- Tabs Section -->
            <div class="main-content">
                <header>
                    <ul class="action-buttons clearfix fr">

                    </ul>
                    <h2>Persiapan Data Transaksi Keuangan</h2>
                </header>
                <section class="container_6 clearfix">
                    <div class="grid_6">

                        <section class="clearfix">
                            <form class="form" id="FORM_TRANSAKSI" method="post" action="">
                                <div style="float: left;">
                                    <div class="clearfix">
                                        <label>Jenis Transaksi <em></em><small></small></label>
                                        <select id="TRANSAKSI" name="TRANSAKSI">
                                            <?php foreach ($Transaksi->result() as $row): ?>
                                            <option value="<?php echo $row->ID_JENIS_TRANSAKSI ?>"><?php echo $row->NAMA_JENIS_TRANSAKSI ?></option>
                                            <?php endforeach; ?>
                                        </select>
                                    </div>
                                    <div class="clearfix">
                                        <label>Jenis Data <small></small></label>
                                        <select id="DATA_TRANSAKSI" name="DATA_TRANSAKSI">
                                            <?php foreach ($Data_transaksi->result() as $row): ?>
                                            <option value="<?php echo $row->ID_JENIS_DATA ?>"><?php echo $row->NAMA_JENIS_DATA ?></option>
                                            <?php endforeach; ?>
                                        </select>
                                    </div>
                                </div>
                                
                                <div style="float: left;">
                                    <div class="clearfix">
                                        <label>Nomer BKK/BKB <small></small></label>
                                        <input type="text" name="BKK_BKB" id="BKK_BKB" required="required"/>
                                        <input type="hidden" name="ID_BUKTI_TRANSAKSI" id="ID_BUKTI_TRANSAKSI"/>
                                    </div>
                                    <div class="clearfix">
                                        <label>Tanggal <small>yyyy-mm-dd</small></label>
                                        <input type="date" name="TANGGAL" id="TANGGAL_PINJAM" />
                                    </div>
                                </div>

                                
                                <dir style="clear: both"></dir>
                                <hr/>
                                <div style="margin: 0 0 20px 0;">
                                    <div style="float: right; margin: 0 30px 5px 0;">
                                        <button class="button button-gray" type="submit" id="cek_perkiraan"><span class="add"></span>Tambah</button>
                                        <button class="button button-gray" type="submit" id="hapus_perkiraan"><span class="add"></span>Hapus</button>
                                        <button class="button button-gray" type="submit" id="tambah_perkiraan"><span class="add"></span>Tambah Perkiraan</button>
                                    </div>
                                    <dir style="clear: both"></dir>
                                    <table id="list_perkiraan" class="detail_table">
                                        <thead>
                                            <tr>
                                                <th>Nomer Perkiraan</th>
                                                <th>Nama Perkiraan</th>
                                                <th>Tipe</th>
                                                <th>Jumlah</th>
						<th>Hapus</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                        <td colspan="5" style="text-align: center;">Tidak ada data</td>
                                        </tbody>
                                        <tfoot>
                                        <th colspan="4" style="text-align: center;">Total</th>
                                        <th style="text-align: right">-</th>
                                        </tfoot>
                                    </table>
                                </div>
                                
                                <dir style="clear: both"></dir>
                                <hr/>

                                <div style="float: left;">
                                    <div class="clearfix">
                                        <label>Keterangan <small></small></label>
                                        <input type="text" name="KETERANGAN" id="KETERANGAN"/>
                                    </div>
                                </div>

                                <div class="action clearfix">
                                    <button class="button button-gray" type="submit" id="update_transaksi"><span class="accept"></span>Simpan</button>
                                    <button class="button button-gray" type="reset"><span class="bin"></span>Reset</button>
                                </div>
                            </form>
                        </section>
                    </div>
                </section>
            </div>
            <!-- End Tabs Section -->


            <!-- Main Section End -->

    </div>
</section>
</div>

<div id="perkiraan_dialog">
    <table id="perkiraan_table" width="100%" class="datatable">
        <thead>
        </thead>
        <tbody>
        </tbody>
    </table>
</div>

<div id="faktur_dialog">
    <table id="faktur_table" width="100%" class="datatable">
        <thead>
        </thead>
        <tbody>
        </tbody>
    </table>
</div>

<div id="pinjaman_dialog">
    <table id="pinjaman_table" width="100%" class="datatable">
        <thead>
        </thead>
        <tbody>
        </tbody>
    </table>
</div>

<div id="input_perkiraan_dialog">
    <form class="form" id="input_perkiraan" method="post" action="">
        <div style="float: left;">
            <div class="clearfix">
                <label>Nomer Perkiraan <small></small></label>
                <input type="text" name="KODE_PERKIRAAN" id="KODE_PERKIRAAN"/>
                <input type="hidden" name="ID_BUKTI" id="ID_BUKTI"/>
            </div>
            <div class="clearfix">
                <label>Debit / Kredit<small></small></label>
                <select name="KODE" id="KODE">
                    <option value="D">Debet</option>
                    <option value="K">Kredit</option>
                </select>
            </div>
        </div>

        <div style="float: left;">
            <div class="clearfix">
                <label>Nama Perkiraan <small></small></label>
                <input type="text" name="URAIAN_PERKIRAAN" id="URAIAN_PERKIRAAN"/>
            </div>
            <div class="clearfix">
                <label>Jumlah <small>rupiah</small></label>
                <input type="text" name="JUMLAH" id="JUMLAH" class="currency"/>
            </div>
        </div>

        <div class="action clearfix">
            <button class="button button-gray" type="submit" id="submit_perkiraan"><span class="accept"></span>Tambah</button>
            <button class="button button-gray" type="reset"><span class="bin"></span>Batal</button>
        </div>
    </form>
</div>


<?php $this->load->view('base/footer'); ?>
